
<?php
if ($type_form == 'post') {

    echo form_open('admin/tbl_cat_coupon_product/add');
} else {

    echo form_open('admin/tbl_cat_coupon_product/update');
}
?>


<?php echo form_error('id_product'); ?>

<?php echo form_error('id_coupon'); ?>

<table class="standard-table">
    
    <tr>
        <td>Id Product</td>
        <td><input type="text" name="id_product" value="<?php if(isset ($isi['id_product'])){echo $isi['id_product'];}?>" /></td>
    </tr>
    
    <tr>
        <td>Id Coupon</td>
        <td><input type="text" name="id_coupon" value="<?php if(isset ($isi['id_coupon'])){echo $isi['id_coupon'];}?>" /></td>
    </tr>
    
   
    <tr>
        <td></td>
        <td>
               <?php if ($type_form == 'post') { ?>
            <input type="submit" name="post" value="Submit" />
               <?php } else { ?>

             <?php if(isset ($isi['id'])){ echo form_hidden('id',$isi['id']);}?>

            <input type="submit" name="update" value="update" />       
            
                <?php } ?>

        </td>
    </tr>
</table>




</form>